package com.ys.chatserver.rtc;

import java.util.ArrayList;

public class RtcStreamNotify {
    protected int aliveSecond;
    protected int bytesSpeed;
    protected int originType;
    protected int totalReaderCount;
    protected int readerCount;
    protected boolean regist;
    protected boolean isRecordingHLS;
    protected boolean isRecordingMP4;
    protected String app;
    protected String createStamp;
    protected String mediaServerId;
    protected String originUrl;
    protected String schema;
    protected String stream;
    protected String peer;
    protected String vhost;
    protected RtcStreamOrigin originSock;
    protected ArrayList<RtcStreamTrack> tracks;

    public RtcStreamNotify() {

    }

    public String toString() {
        return "app:" + (app != null ? app : "null")
                + ",createStamp:" + (createStamp != null ? createStamp : "null")
                + ",mediaServerId:" + (mediaServerId != null ? mediaServerId : "null")
                + ",originUrl:" + (originUrl != null ? originUrl : "null")
                + ",schema:" + (schema != null ? schema : "null")
                + ",stream:" + (stream != null ? stream : "null")
                + ",vhost:" + (vhost != null ? vhost : "null")
                + ",aliveSecond:" + aliveSecond
                + ",bytesSpeed:" + bytesSpeed
                + ",originType:" + originType
                + ",totalReaderCount:" + totalReaderCount
                + ",readerCount:" + readerCount
                + ",regist:" + regist
                + ",isRecordingHLS:" + isRecordingHLS
                + ",isRecordingMP4:" + isRecordingMP4
                + ",originSock:{" + (originSock != null ? originSock.toString() : "null") + "}";
    }

    public int getAliveSecond() {
        return aliveSecond;
    }

    public void setAliveSecond(int aliveSecond) {
        this.aliveSecond = aliveSecond;
    }

    public int getBytesSpeed() {
        return bytesSpeed;
    }

    public void setBytesSpeed(int bytesSpeed) {
        this.bytesSpeed = bytesSpeed;
    }

    public int getOriginType() {
        return originType;
    }

    public void setOriginType(int originType) {
        this.originType = originType;
    }

    public int getTotalReaderCount() {
        return totalReaderCount;
    }

    public void setTotalReaderCount(int totalReaderCount) {
        this.totalReaderCount = totalReaderCount;
    }

    public boolean isRegist() {
        return regist;
    }

    public void setRegist(boolean regist) {
        this.regist = regist;
    }

    public boolean isRecordingHLS() {
        return isRecordingHLS;
    }

    public void setRecordingHLS(boolean recordingHLS) {
        isRecordingHLS = recordingHLS;
    }

    public boolean isRecordingMP4() {
        return isRecordingMP4;
    }

    public void setRecordingMP4(boolean recordingMP4) {
        isRecordingMP4 = recordingMP4;
    }

    public String getApp() {
        return app;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public String getCreateStamp() {
        return createStamp;
    }

    public void setCreateStamp(String createStamp) {
        this.createStamp = createStamp;
    }

    public String getMediaServerId() {
        return mediaServerId;
    }

    public void setMediaServerId(String mediaServerId) {
        this.mediaServerId = mediaServerId;
    }

    public String getOriginUrl() {
        return originUrl;
    }

    public void setOriginUrl(String originUrl) {
        this.originUrl = originUrl;
    }

    public int getReaderCount() {
        return readerCount;
    }

    public void setReaderCount(int readerCount) {
        this.readerCount = readerCount;
    }

    public String getSchema() {
        return schema;
    }

    public void setSchema(String schema) {
        this.schema = schema;
    }

    public String getStream() {
        return stream;
    }

    public void setStream(String stream) {
        this.stream = stream;
    }

    public String getVhost() {
        return vhost;
    }

    public void setVhost(String vhost) {
        this.vhost = vhost;
    }

    public RtcStreamOrigin getOriginSock() {
        return originSock;
    }

    public void setOriginSock(RtcStreamOrigin originSock) {
        this.originSock = originSock;
    }

    public ArrayList<RtcStreamTrack> getTracks() {
        return tracks;
    }

    public void setTracks(ArrayList<RtcStreamTrack> tracks) {
        this.tracks = tracks;
    }

    public String getPeer() {
        return peer;
    }

    public void setPeer(String peer) {
        this.peer = peer;
    }
}
